import axios from "axios";

const newAxios = axios.create({
    baseURL:'http://web.woniulab.com:8005',
    timeout:3000
});
newAxios.interceptors.request.use((req)=>{
    // 对所有的请求进行业务处理
    console.log("请求拦截器",req);
    req.headers.Authorization = localStorage.token
    return req;
},(error)=>{
    Promise.reject("请求有问题")
})

export default newAxios